package com.cbh.feign.controller.shortmenssage;



import java.util.List;

import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;

import com.cbh.api.model.ApiResult;
import com.cbh.api.model.message.SmsRecord;

public interface SmsRecordControllerBase {

	@RequestMapping(value = "/v1/app/smsrecord/modleid{modleid}", method = RequestMethod.GET, produces = "application/json")
	public ApiResult<List<SmsRecord>> selectBymodleid(@PathVariable("modleid") String modleid);

	@RequestMapping(value = "/v1/app/smsrecord/phone", method = RequestMethod.GET, produces = "application/json")
	public ApiResult<List<SmsRecord>> selectByPhone(@RequestParam(value = "phone", required = true) String phone);

	@RequestMapping(value = "/v1/app/smsrecord", method = RequestMethod.GET, produces = "application/json")
	public ApiResult<List<SmsRecord>> getAllsmsRecord();
}
